package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxxx.server.pojo.Svaccine;
import com.xxxx.server.pojo.Tvaccine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 教职工疫苗登记表 Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2022-06-04
 */
public interface TvaccineMapper extends BaseMapper<Tvaccine> {

    List<Tvaccine> getByColegeIdTvaccine(@Param("id")Integer colegeid);
    IPage<Tvaccine> getTnvaccineByPage(Page<Tvaccine> page,
                                       @Param("tvaccine") Tvaccine tvaccine,
                                       @Param("beginDateScope") String[] beginDateScope, @Param("type") int type, @Param("collegeName") String collegeName, @Param("collegeid") int collegeid);

    List<Tvaccine> getTnvaccineSeachList(@Param("tvaccine") Tvaccine tvaccine,
                                         @Param("beginDateScope") String[] beginDateScope,
                                         @Param("type") int type,
                                         @Param("collegeName") String collegeName,
                                         @Param("collegeid") int collegeid);

}
